Skip to content

Conversation

@cknitt
Copy link
Member

@cknitt cknitt commented Jan 17, 2026

Removes support for the deprecated bsconfig.json. Going forward, only rescript.json will be supported.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 18, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@8187

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@8187

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@8187

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@8187

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@8187

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@8187

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@8187

commit: 28c3425

@cknitt cknitt requested review from cristianoc, nojaf and zth January 18, 2026 07:43
@cknitt cknitt marked this pull request as ready for review January 18, 2026 07:43
@cknitt cknitt enabled auto-merge (squash) January 18, 2026 07:43
@nojaf nojaf requested a review from Copilot January 18, 2026 16:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request removes support for the deprecated bsconfig.json configuration file across the entire ReScript toolchain. Going forward, only rescript.json will be supported as the project configuration file.

Changes:

  • Removed all fallback logic that checked for bsconfig.json when rescript.json is not found
  • Updated error messages, documentation, and comments to reference only rescript.json
  • Removed literal constants and variables referencing bsconfig.json from the codebase

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/bin/main.ml Updated error message to only mention rescript.json
tests/tests/src/test_literals.res Removed bsconfig_json literal constant
tests/tests/src/test_literals.mjs Removed bsconfig_json export
tests/build_tests/warn_legacy_config/input.js Updated test assertion to match new error message
rewatch/tests/suite.sh Added workaround to copy bsconfig.json to rescript.json for external dependency
rewatch/src/helpers.rs Removed bsconfig.json check from config detection
rewatch/src/config.rs Updated comments from bsconfig to rescript.json or generic config
rewatch/src/build/packages.rs Simplified config reading to only check for rescript.json
rewatch/MonorepoSupport.md Removed references to legacy bsconfig.json in documentation
rewatch/CompilerConfigurationSpec.md Updated documentation to use generic "config" terminology
compiler/gentype/Paths.ml Removed fallback to legacy config file
compiler/gentype/GenTypeConfig.ml Removed legacy config file constant and fallback logic
compiler/frontend/ast_config.ml Renamed functions from bs_config to config
compiler/ext/literals.ml Removed bsconfig_json literal constant
compiler/ext/ext_path.ml Updated find_config_dir to only search for rescript.json
analysis/src/Packages.ml Removed bsconfig.json fallback logic
analysis/src/FindFiles.ml Removed bsconfig.json fallback when reading dependency configs
analysis/reanalyze/src/ReanalyzeServer.ml Updated comment to only mention rescript.json
analysis/reanalyze/src/Reanalyze.ml Updated comment and renamed function from processBsconfig to processConfig
analysis/reanalyze/src/Paths.ml Removed bsconfig constant and fallback logic
CHANGELOG.md Added breaking change entry for removing bsconfig.json support
.github/workflows/ci.yml Removed separate testrepo install step (now handled in test suite)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cknitt cknitt merged commit cba7ed7 into rescript-lang:master Jan 18, 2026
31 checks passed
@cknitt cknitt deleted the no-bsconfig branch January 18, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants